58dc74
@@ -115,7 +115,10 @@
public final class JavaType implements Comparable<JavaType>, Cloneable {
 			simpleTypeName = fullyQualifiedTypeName.substring(offset+1);
 		}
 		if (!Character.isUpperCase(simpleTypeName.charAt(0))) {
-			throw new IllegalArgumentException("The first letter of the type name portion must be uppercase (attempted '" + fullyQualifiedTypeName + "')");
+			// Doesn't start with an uppercase letter, so let's verify it starts with an underscore and then an uppercase
+			if (simpleTypeName.length() < 2 || !Character.isUpperCase(simpleTypeName.charAt(1)) || '_' != simpleTypeName.charAt(0)) {
+				throw new IllegalArgumentException("The first letter of the type name portion must be uppercase (attempted '" + fullyQualifiedTypeName + "')");
+			}
 		}
 		
 		this.array = array;
